import { FormItem, CustomEnum } from 'custom/index'


export default class SearchInput extends FormItem {
  public static name: CustomEnum = 'SearchInput';

  public static props = {
    isCollapse: {
      type: Boolean,
      default: true
    },
    showTrigger: {
      type: Boolean,
      default: true
    },
    data: {
      type: Object,
      default: () => ({})
    }
  }

  protected static emits: any = {
    trigger: 'trigger',
    search: 'search',
    changeColumn: 'changeColumn'
  }

  showColumns(showColumns = false) {
    this._props.showColumns = showColumns
    return this
  }

  end() {
    return this.upto('PageSearch')
  }
}
